package com.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Version: V1.0    <br/>
 * Datetime:   2022/5/14 4:48   <br/>
 * Description: 自定义事务异常
 *
 * @author: chen
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomTransactionalException extends RuntimeException {
    private static final long serialVersionUID = -1827492421131636976L;

    public CustomTransactionalException() {
    }

    public CustomTransactionalException(String message) {
        super(message);
    }

    public CustomTransactionalException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomTransactionalException(Throwable cause) {
        super(cause);
    }

    protected CustomTransactionalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}